package com.wangshidai.mapper;

import com.wangshidai.entity.Dept;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

public interface DeptMapper {
    /**
     * 组合查询 根据部门编号  名称  地址
     * @param dept
     * @return
     */
    public List<Dept> queryDeptsByBri(Dept dept);

    public List<Dept> queryDepts();
    //public Dept queryByDid(int did);
    //多个参数必须要加@Param注解
    //public void saveDept(@Param("deptName") String deptName,@Param("address") String address);
   // public void saveDept(HashMap map);
    public void saveDept(Dept dept);
    public void updateDept(Dept dept);
    public void deleteDept(int did);
   // public int queryDeptCount();
}
